package com.itheima.homework.test6;

public class Student implements Study{
    String name;
    double score;
    Line lins;

    public Student() {
    }

    public Student(String name, double score, Line lins) {
        this.name = name;
        this.score = score;
        this.lins = lins;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Line getLins() {
        return lins;
    }

    public void setLins(Line lins) {
        this.lins = lins;
    }

    public void exam(){

        if (score >= 60) {
            System.out.println("您的成绩为" + score + ",考试通过");
        } else {
            System.out.println("您的成绩为" + score + ",考试不通过");
        }
    }

    @Override
    public void studyLine() {
        System.out.println("您报名的就业班为：" + lins.getEmplymentClass() + ",应缴纳学费：" + lins.getMoney() + "元。");

    }
}
